
<template>
  <div>
    <AchievementList :achievements="achievements"></AchievementList>
  </div>
</template>

<script lang="ts">
import { Vue, Prop, Component } from 'vue-property-decorator'
import { Getter, Action } from 'vuex-class'
import AchievementList from '@/components/AchievementList.vue'
@Component({
  components: {
    AchievementList
  },
  filters: {}
})

export default class TeacherAchievement extends Vue {
  @Action getAchievements;
  public get achievements () {
    return this.$store.state.achievement.data
  }
  public async created () {
    if (this.achievements === null) {
      await this.getAchievements()
    }
  }

  public onShow () {

  }
}
</script>

<style lang="stylus" scoped>

</style>
